<?php

namespace JLPay\Models\Openmerch\Change;

/**
 * 商户基础信息DTO
 */
class MerchBaseInfoDto
{
    protected ?string $applyId = null;
    protected ?string $productType = null;

    /**
     * 设置业务申请编号
     *
     * @param string $applyId
     * @return self
     */
    public function setApplyId(string $applyId): self
    {
        $this->applyId = $applyId;
        return $this;
    }

    /**
     * 设置产品基本类型
     *
     * @param string $productType
     * @return self
     */
    public function setProductType(string $productType): self
    {
        $this->productType = $productType;
        return $this;
    }

    /**
     * 转换为数组
     *
     * @return array
     */
    public function toArray(): array
    {
        return [
            'apply_id' => $this->applyId,
            'product_type' => $this->productType
        ];
    }
} 